home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / TrackWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  3.2 KB  |  102 lines  |  [TEXT/KAHL]

  1. /* TrackWindow.h */
  2.  
  3. #ifndef Included_TrackWindow_h
  4. #define Included_TrackWindow_h
  5.  
  6. /* TrackWindow module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* Scroll */
  12. /* Screen */
  13. /* EventLoop */
  14. /* Menus */
  15. /* MainWindowStuff */
  16. /* TrackObject */
  17. /* TrackList */
  18. /* WindowDispatcher */
  19. /* Memory */
  20. /* IconButton */
  21. /* NoteButtonImages */
  22. /* GrowIcon */
  23. /* Main */
  24. /* TrackView */
  25. /* NoteObject */
  26. /* Array */
  27. /* TrackAttributeDialog */
  28. /* CommandChooser */
  29. /* DataMunging */
  30. /* GlobalWindowMenuList */
  31. /* SampleDeviceOutput */
  32. /* Alert */
  33. /* NumberDialog */
  34. /* DiskFileOutput */
  35.  
  36. #include "Screen.h"
  37. #include "Menus.h"
  38. #include "EventLoop.h"
  39.  
  40. struct TrackWindowRec;
  41. typedef struct TrackWindowRec TrackWindowRec;
  42.  
  43. /* forward declarations */
  44. struct TrackObjectRec;
  45. struct MainWindowRec;
  46. struct TrackListRec;
  47.  
  48. /* create a new track editing window */
  49. TrackWindowRec*                    NewTrackWindow(struct TrackObjectRec* TrackObject,
  50.                                                     struct MainWindowRec* MainWindow,
  51.                                                     struct TrackListRec* TrackList, short WinX, short WinY,
  52.                                                     short WinWidth, short WinHeight);
  53.  
  54. /* dispose of the track editing window. */
  55. void                                        DisposeTrackWindow(TrackWindowRec* Window);
  56.  
  57. /* bring the track window to the top and give it the focus */
  58. void                                        TrackWindowBringToTop(TrackWindowRec* Window);
  59.  
  60. /* event handling routines */
  61. void                                        TrackWindowDoIdle(TrackWindowRec* Window,
  62.                                                     MyBoolean CheckCursorFlag, OrdType XLoc, OrdType YLoc,
  63.                                                     ModifierFlags Modifiers);
  64. void                                        TrackWindowBecomeActive(TrackWindowRec* Window);
  65. void                                        TrackWindowBecomeInactive(TrackWindowRec* Window);
  66. void                                        TrackWindowJustResized(TrackWindowRec* Window);
  67. void                                        TrackWindowDoMouseDown(OrdType XLoc, OrdType YLoc,
  68.                                                     ModifierFlags Modifiers, TrackWindowRec* Window);
  69. void                                        TrackWindowDoKeyDown(unsigned char KeyCode,
  70.                                                     ModifierFlags Modifiers, TrackWindowRec* Window);
  71. void                                        TrackWindowClose(TrackWindowRec* Window);
  72. void                                        TrackWindowUpdator(TrackWindowRec* Window);
  73. void                                        TrackWindowMenuSetup(TrackWindowRec* Window);
  74. void                                        TrackWindowDoMenuCommand(TrackWindowRec* Window,
  75.                                                     MenuItemType* MenuItem);
  76.  
  77. /* update the positioning of the vertical scroll bar and redraw */
  78. void                                        TrackWindowUpdateVScrollBar(TrackWindowRec* Window);
  79.  
  80. /* update the positioning of the horizontal scroll bar and redraw */
  81. void                                        TrackWindowUpdateHScrollBar(TrackWindowRec* Window);
  82.  
  83. /* update both scrollbars */
  84. void                                        TrackWindowUpdateScrollBars(TrackWindowRec* Window);
  85.  
  86. /* reset the state of the note attribute buttons according to the attribute flags */
  87. void                                        TrackWindowResetButtons(TrackWindowRec* Window);
  88.  
  89. /* the name of the file has changed, so update the title bar of the window.  the */
  90. /* NewFilename is a non-null-terminated string.  the caller is responsible for */
  91. /* disposing of it */
  92. void                                        TrackWindowGlobalNameChange(TrackWindowRec* Window,
  93.                                                     char* NewFilename);
  94.  
  95. /* reset the title bar even if the filename hasn't changed */
  96. void                                        TrackWindowResetTitlebar(TrackWindowRec* Window);
  97.  
  98. /* show the current selection in the window */
  99. void                                        TrackWindowShowSelection(TrackWindowRec* Window);
  100.  
  101. #endif
  102.